<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例2</title>
</head>
<body>
    <script>
        let student = {
            name: 'jack',
            age: 18,
            show: function (){
                console.log(`姓名:${this.name} 年龄:${this.age}`)
            }
        }
        student.show()
    </script>
</body>
</html>